<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="basestyle.css">
<title>JSP Page</title>
</head>
<body id="layout">
	<div id="bodyheader">Create/Edit Project</div>
	<br></br>
	<div id="bodystyle"><s:actionerror /> 
	<s:form	action="createProject" method="post">
		<s:textfield name="projectId" label="Project ID" readonly="true" value="%{projectId}"/>
		<s:textfield name="pname" label="Project Name"/>
		<s:textfield name="pcode" label="Project Code"/>
		<s:select label="Client" name="proj_clientId" list="clients"
			listKey="userId" listValue="username" required="true"/>
		<s:select label="Department" name="proj_deptId" list="departments"
			listKey="deptId" listValue="deptName" required="true" />
		<s:select label="Manager" name="pmgrId" list="managers"
			listKey="userId" listValue="username" 
			required="true" />
		<s:textfield name="projBudget" label="Project Budget" />
		<s:textfield name="projManHour" label="Man Hours Required"></s:textfield>
		
		
		<s:if test="actionName=='editProject'">
			<s:submit name="actionName" value="Edit Project"></s:submit>
		</s:if>
		<s:if test="actionName=='createProject'">
			<s:submit name="actionName" value="Create Project"></s:submit>
		</s:if>
	</s:form>
	</div>

</body>
</html>